package com.bkgy.modular.tbdsjdatacollect.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bkgy.modular.tbdsjdatacollect.entity.TbDsjDataCollect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 数据采集表dao接口
 * @author  生成器生成
 * @date 2022-07-26 15:56:37
 * */
@Mapper
public interface TbDsjDataCollectDao extends BaseMapper<TbDsjDataCollect> {

	/**
	 * 添加记录
	 * @param tbDsjDataCollect  对象实体
	 * */
	public void insertDataTbDsjDataCollect(TbDsjDataCollect tbDsjDataCollect);
	
	/**
	 * 根据主键删除对象
	 * */
	public void deleteDataTbDsjDataCollectOne(@Param("L1_VARIABLE_NAME") String L1_VARIABLE_NAME, @Param("out_data_source") String out_data_source   );
	
	/**
     * 删除多个对象
     * @param value sql语句
     */
    public void deleteDataTbDsjDataCollectMany(String value);
	
	/**
	 * 修改记录
	 * @param tbDsjDataCollect  对象实体
	 * */
	public void updateDataTbDsjDataCollect(TbDsjDataCollect tbDsjDataCollect);
	
	
	/**
     * 分页查看查看记录
     * @param pageIndex 第几页
     * @param pageSize  每页总数
     * @return 对象数据集合
     */
    public List<TbDsjDataCollect> findDataTbDsjDataCollectByPage(@Param("pageIndex") Integer pageIndex,@Param("pageSize") Integer pageSize,@Param("l1_variable_description") String l1_variable_description,@Param("production_line") String production_line,@Param("l1_variable_name") String l1_variable_name,@Param("out_data_source")String out_data_source);
    
    /**
     * 根据条件查看记录的总数
     * @return 对象数据集合
     */
    public Integer findDataTbDsjDataCollectByPageSize(@Param("l1_variable_description") String l1_variable_description,@Param("production_line") String production_line,@Param("l1_variable_name") String l1_variable_name,@Param("out_data_source")String out_data_source);
    
    /***
     * 根据主键查询信息
     * @return
     */
    public TbDsjDataCollect findDataTbDsjDataCollectByIndocno(@Param("findDataTbDsjDataCollectByIndocno") String findDataTbDsjDataCollectByIndocno);
	
	/**
	 * 查看记录
	 * @return 对象数据集合
	 * */
	public List<TbDsjDataCollect> findDataTbDsjDataCollect();


	List<TbDsjDataCollect> findAlias(String originName,Integer dataSourceType);
	
}
